#include <stdio.h>
int main()
{int i;
int t=1;
int n;
int sum=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{t*=2;
sum+=t;

}
printf("%d\n%d\n",100000*n,t-1);
    return 0;
}
